﻿using AutoMapper.EquivalencyExpression;
using Volo.Abp.Account;
using Volo.Abp.AutoMapper;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;
using Volo.Abp.TenantManagement;
using Volo.Abp.UI.Navigation;

namespace Acme.BookStore2
{
    [DependsOn(
        typeof(BookStore2DomainModule),
        typeof(AbpAccountApplicationModule),
        typeof(BookStore2ApplicationContractsModule),
        typeof(AbpIdentityApplicationModule),
        typeof(AbpPermissionManagementApplicationModule),
        typeof(AbpTenantManagementApplicationModule),
        typeof(AbpFeatureManagementApplicationModule)
        )]
    public class BookStore2ApplicationModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddMaps<BookStore2ApplicationModule>();
                options.Configurators.Add(ctx => ctx.MapperConfiguration.AddCollectionMappers());
            });
        }
    }
}
